package cn.cboard.model;

public class User {
	private Long userId;
	private String username;
	private String password;
	private String name;
	private String email;
  	private UserGroup userGroup;
  	private String signature;
  	private Long topicCount;
  	private boolean anonymous;
  	
  	public User(){}

  	public void setUserId(Long userId){
  		this.userId = userId;
  	}
  	public Long getUserId(){
  		return userId;
  	}
  	public void setUsername(String username){
  		this.username = username;
  	}
  	public String getUsername(){
  		return username;
  	}
  	public void setPassword(String password){
  		this.password = password;
  	}
  	public String getPassword(){
  		return password;
  	}
  	public void setName(String name){
  		this.name = name;
  	}
  	public String getName(){
  		return name;
  	}
  	public void setEmail(String email){
  		this.email = email;
  	}
  	public String getEmail(){
  		return email;
  	}
  	public void setSignature(String signature){
  		this.signature = signature;
  	}
  	public String getSignature(){
  		return signature;
  	}

	public UserGroup getUserGroup() {
		return userGroup;
	}

	public void setUserGroup(UserGroup userGroup) {
		this.userGroup = userGroup;
	}

	public Long getTopicCount() {
		return topicCount;
	}

	public void setTopicCount(Long topicCount) {
		this.topicCount = topicCount;
	}

	public boolean isAnonymous() {
		return anonymous;
	}

	public void setAnonymous(boolean anonymous) {
		this.anonymous = anonymous;
	}
	
	public String toString(){
		StringBuffer buffer = new StringBuffer();
		buffer.append(" UserID: ");
		buffer.append(userId);
		buffer.append(" UserName: ");
		buffer.append(username);
		return buffer.toString();		
	}
}